package com.chentongwei.common.exception;

import com.chentongwei.common.constant.ResponseEnum;

/**
 * Web异常，比如参数，校验等
 *
 * @author TongWei.Chen 2017-10-16 09:23:43
 */
public class WebException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private ResponseEnum responseEnum;

    public WebException(ResponseEnum responseEnum) {
        super();
        this.responseEnum = responseEnum;
    }

    public ResponseEnum getResponseEnum() {
        return responseEnum;
    }

    public void setResponseEnum(ResponseEnum responseEnum) {
        this.responseEnum = responseEnum;
    }
}
